<template>
	<view>
		<web-view :src="url"></web-view>
		

	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:'',

			}
		},
		onLoad(e) {
			let me = this;
			me.url = e.url;
			
					
			// me.Net._get('kfphone',{},(res)=>{
			// 	if(res.code ==1){
			// 		me.phone=res.data.phone
			// 		me.vx=res.data.vx
			// 	  console.log(me.data)
			// 	}
			// });	
		},
		methods: {
			gotopage(e){
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url:url
				})
			},
			openPhone(){
						let me = this;
				uni.showModal({
				    title: '客服热线',
				    content:me.phone,
				    success: function (res) {
				        if (res.confirm) {
				            //console.log('用户点击确定');
							uni.makePhoneCall({
							    phoneNumber:me.phone//仅为示例
							});
				        } else if (res.cancel) {
				            //console.log('用户点击取消');
				        }
				    }
				});
			},

		}
	}
</script>


<style>
	page{
		background-color: #fff;
	}
	.bg_img{
		width: 100%;
		text-align: center;
		margin-top: 50px;
	}
	
	.bg_img image{
		width: 50%;
	}
	
	.title{
		font-size: 20px;
		color: #666;
		text-align: center;
		line-height: 34px;
	}
	
	.line{
		width: 50px;
		height: 2px;
		background-color: #E49B27;
		margin: 0 auto;
	}
	
	.text{
		width: 80%;
		margin: 0 auto;
		font-size: 14px;
		color: #999;
		text-align: center;
		margin-top: 20px;
		line-height: 20px;
	}
	
	
	
	

</style>
